<?php
/**
 * BeanGenerator
 * @author Juan Carlos Jarquin
 */

require_once "application/lib/generators/php/default/BaseGenerator.php";


/**
 * Clase que genera los Beans
 */
class FormGenerator extends BaseGenerator implements CodeGenerable
{

  /**
   * Donde se va a guardar el archivo
   */
  protected $fileName = "application/views/forms/%s.tpl";
   
  
  public function run()
  {
  	$this->view->table = $this->table;
    $this->view->foreignKeys = $this->table->getForeignKeys();
    $this->view->primaryField = $this->table->getPrimaryField();
    $this->view->nonForeignKeys = $this->table->getNonForeignKeys();
  }
  
 
}
